//
//  RYQuerenPeisongSubCell.swift
//  SheYangBigData
//
//  Created by 宋海胜 on 2021/1/13.
//  Copyright © 2021 叁拾叁. All rights reserved.
//




import UIKit

class RYQuerenPeisongSubCell: SYBaseCell {
    

    
    let arrow: UIImageView = {
        let v: UIImageView = UIImageView()
        v.image = UIImage(named: "arrow")
        return v
    }()
    
    let title: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x333333)
        v.font = 15.autoFontSize()
        
        return v
    }()
    
    let content: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0xA6A6A6)
        v.font = 14.autoFontSize()
        
        return v
    }()
    
    override func initViews() {
        
        
        addSubview(lineView)
        addSubview(arrow)
        addSubview(title)
        addSubview(content)
        
        lineView.snp.makeConstraints { (make) in
            make.left.equalToSuperview().offset(15)
            make.right.equalToSuperview().offset(-15)
            make.height.equalTo(0.5.autoWidth())
            make.bottom.equalToSuperview()
        }
        arrow.snp.makeConstraints { (make) in
            make.right.equalToSuperview().offset(-15)
            make.centerY.equalToSuperview()
            make.width.equalTo(7.autoWidth())
            make.height.equalTo(12.autoWidth())
        }
        title.snp.makeConstraints { (make) in
            make.left.equalToSuperview().offset(15)
            make.centerY.equalToSuperview()
            make.height.equalTo(18.autoWidth())
        }
        content.snp.makeConstraints { (make) in
            make.right.equalToSuperview().offset(-30)
            make.centerY.equalToSuperview()
            make.height.equalTo(15.autoWidth())
        }
    }

}
